<#ftl encoding="UTF-8" /> 
<html>
<head>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
</head>
<body>
<h1>${test}</h1>
<div>
<a href="/resCodeType/query">query</a>
<a href="/resCodeType/form">form</a>
<a href="/resCodeType/update">update</a>
<a href="/resCodeType/delete">delete</a>
</div>
<hr>
<form action="/resCodeType/save" method="post">
	<div>
		<h2>resCodeType</h2>
		<label> name:</label><input type="text" name="name">
		<label> code:</label><input type="text" name="code">
	</div>
	
	
	<div>
		<h2>resCode</h2>
		<div>
			<label>resCodeName:</label><input type="text" name="resCodeList[0].value"/>
		</div>
		<div> 
			<label>resCodeName:</label><input type="text" name="resCodeList[1].value"/>
		</div>
	</div>
	<!--
	<div>
		<h2>resCodeTest</h2>
		<div>
			<label>resCodeTestName:</label><input type="text" name="resCodeTestList[0].name"/>
		</div>
		<div>
			<label>resCodeTestName:</label><input type="text" name="resCodeTestList[1].name"/>
		</div>
	</div>
-->
<input type="submit" value="save">
</form>

<hr>
<form action="/resCodeType/query" method="post">
like:<input type="text" name="search" value="${page.search}" /><input type="submit" value="search"/>
</form>
<table>
	<thead>
		<tr>
			<th></th>
			<th>name</th>
			<th>code</th>
		</tr>
	</thead>
	<tbody>
		<#list page.list as resCodeType>
		<tr>
			<td></td>
			<td>${resCodeType.name}</td>
			<td>${resCodeType.code}</td>
		</tr>
	 	</#list>
	</tbody>
</table>
	<#list 1..page.totalPage as i >
		${i} 
	</#list>
	<select>
		<option></option>
	</select>
	count is<b style="color:red"> ${page.count} </b>,
	totalPage is <b style="color:red">${page.totalPage}<b>
</body>
</html>



